﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using DAL;
using Model;
using System.Data.SqlClient;

namespace BLL
{
    /// <summary>
    /// 字典表
    /// </summary>
    public class DictionaryBll
    {
        DictionaryDal dal = new DictionaryDal();
         /// <summary>
        /// 绑定下拉框
        /// </summary>
        /// <returns></returns>
        public List<SysDictionary> sb(int i)
        {
            return dal.sb(i);
        }

        /// <summary>
        /// 显示
        /// </summary>
        /// <returns>List集合</returns>
        public List<Model.SysDictionary> Show(params SqlParameter[] paramters)
        {
            return dal.Show(paramters);
        }
        /// <summary>
        /// 删除字典
        /// </summary>
        /// <param name="Dictionary_Number">字典编号</param>
        /// <returns></returns>
        public bool DelDictionary(string Dictionary_Number)
        {
            return dal.DelDictionary(Dictionary_Number);
        }
        /// <summary>
        /// 修改反填字典数据
        /// </summary>
        /// <param name="Dictionary_Number">字典编号</param>
        /// <returns></returns>
        public Model.SysDictionary UpdateDic(string Dictionary_Number)
        {
            return dal.UpdateDic(Dictionary_Number);
        }
        /// <summary>
        /// 修改反填字典数据执行
       /// </summary>
       /// <param name="Dictionary_Number">字典号</param>
       /// <param name="Dictionary_Name">字典名称</param>
       /// <param name="CreatePeople">创建人</param>
       /// <returns></returns>
        public bool DoUpdateDic(string Dictionary_Number, string Dictionary_Name, string CreatePeople)
        {
            return dal.DoUpdateDic(Dictionary_Number, Dictionary_Name, CreatePeople);
        }
    }
}
